/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Michael J. Damato | http://developing.damato.net/ */
// State lists
var states = new Array();

states['Andorra'] = new Array('Others');
states['United Arab Emirates'] = new Array('Others');
states['Afghanistan'] = new Array('Others');
states['Antigua and Barbuda'] = new Array('Others');
states['Anguilla'] = new Array('Others');
states['Albania'] = new Array('Others');
states['Armenia'] = new Array('Others');
states['Netherlands Antilles'] = new Array('Others');
states['Angola'] = new Array('Others');
states['Asia/Pacific Region'] = new Array('Others');
states['Antarctica'] = new Array('Others');
states['Argentina'] = new Array('Others');
states['American Samoa'] = new Array('Others');
states['Austria'] = new Array('Others');
states['Australia'] = new Array('Others');
states['Aruba'] = new Array('Others');
states['Aland Islands'] = new Array('Others');
states['Azerbaijan'] = new Array('Others');
states['Bosnia and Herzegovina'] = new Array('Others');
states['Barbados'] = new Array('Others');
states['Bangladesh'] = new Array('Others');
states['Belgium'] = new Array('Others');
states['Burkina Faso'] = new Array('Others');
states['Bulgaria'] = new Array('Others');
states['Bahrain'] = new Array('Others');
states['Burundi'] = new Array('Others');
states['Benin'] = new Array('Others');
states['Bermuda'] = new Array('Others');
states['Brunei Darussalam'] = new Array('Others');
states['Bolivia'] = new Array('Others');
states['Brazil'] = new Array('Others');
states['Bahamas'] = new Array('Others');
states['Bhutan'] = new Array('Others');
states['Bouvet Island'] = new Array('Others');
states['Botswana'] = new Array('Others');
states['Belarus'] = new Array('Others');
states['Belize'] = new Array('Others');
states['Canada'] = new Array('Others');
states['Cocos (Keeling) Islands'] = new Array('Others');
states['Congo, The Democratic Republic of the'] = new Array('Others');
states['Central African Republic'] = new Array('Others');
states['Congo'] = new Array('Others');
states['Switzerland'] = new Array('Others');
states['Cote dIvoire'] = new Array('Others');
states['Cook Islands'] = new Array('Others');
states['Chile'] = new Array('Others');
states['Cameroon'] = new Array('Others');
states['China'] = new Array('Others');
states['Colombia'] = new Array('Others');
states['Costa Rica'] = new Array('Others');
states['Cuba'] = new Array('Others');
states['Cape Verde'] = new Array('Others');
states['Christmas Island'] = new Array('Others');
states['Cyprus'] = new Array('Others');
states['Czech Republic'] = new Array('Others');
states['Germany'] = new Array('Others');
states['Djibouti'] = new Array('Others');
states['Denmark'] = new Array('Others');
states['Dominica'] = new Array('Others');
states['Dominican Republic'] = new Array('Others');
states['Algeria'] = new Array('Others');
states['Ecuador'] = new Array('Others');
states['Estonia'] = new Array('Others');
states['Egypt'] = new Array('Others');
states['Western Sahara'] = new Array('Others');
states['Eritrea'] = new Array('Others');
states['Spain'] = new Array('Others');
states['Ethiopia'] = new Array('Others');
states['Europe'] = new Array('Others');
states['Finland'] = new Array('Others');
states['Fiji'] = new Array('Others');
states['Falkland Islands (Malvinas)'] = new Array('Others');
states['Micronesia, Federated States of'] = new Array('Others');
states['Faroe Islands'] = new Array('Others');
states['France'] = new Array('Others');
states['Gabon'] = new Array('Others');
states['United Kingdom'] = new Array('Others');
states['Grenada'] = new Array('Others');
states['Georgia'] = new Array('Others');
states['French Guiana'] = new Array('Others');
states['Guernsey'] = new Array('Others');
states['Ghana'] = new Array('Others');
states['Gibraltar'] = new Array('Others');
states['Greenland'] = new Array('Others');
states['Gambia'] = new Array('Others');
states['Guinea'] = new Array('Others');
states['Guadeloupe'] = new Array('Others');
states['Equatorial Guinea'] = new Array('Others');
states['Greece'] = new Array('Others');
states['South Georgia and the South Sandwich Islands'] = new Array('Others');
states['Guatemala'] = new Array('Others');
states['Guam'] = new Array('Others');
states['GuineaOthersBissau'] = new Array('Others');
states['Guyana'] = new Array('Others');
states['Hong Kong'] = new Array('Others');
states['Heard Island and McDonald Islands'] = new Array('Others');
states['Honduras'] = new Array('Others');
states['Croatia'] = new Array('Others');
states['Haiti'] = new Array('Others');
states['Hungary'] = new Array('Others');
states['Indonesia'] = new Array('Others');
states['Ireland'] = new Array('Others');
states['Israel'] = new Array('Others');
states['Isle of Man'] = new Array('Others');
states['India'] = new Array('Others');
states['British Indian Ocean Territory'] = new Array('Others');
states['Iraq'] = new Array('Others');
states['Iran, Islamic Republic of'] = new Array('Others');
states['Iceland'] = new Array('Others');
states['Italy'] = new Array('Others');
states['Jersey'] = new Array('Others');
states['Jamaica'] = new Array('Others');
states['Jordan'] = new Array('Others');
states['Japan'] = new Array('Others');
states['Kenya'] = new Array('Others');
states['Kyrgyzstan'] = new Array('Others');
states['Cambodia'] = new Array('Others');
states['Kiribati'] = new Array('Others');
states['Comoros'] = new Array('Others');
states['Saint Kitts and Nevis'] = new Array('Others');
states['Korea, Democratic People&quot;s Republic of'] = new Array('Others');
states['Korea, Republic of'] = new Array('Others');
states['Kuwait'] = new Array('Others');
states['Cayman Islands'] = new Array('Others');
states['Kazakhstan'] = new Array('Others');
states['Lao People&quot;s Democratic Republic'] = new Array('Others');
states['Lebanon'] = new Array('Others');
states['Saint Lucia'] = new Array('Others');
states['Liechtenstein'] = new Array('Others');
states['Sri Lanka'] = new Array('Others');
states['Liberia'] = new Array('Others');
states['Lesotho'] = new Array('Others');
states['Lithuania'] = new Array('Others');
states['Luxembourg'] = new Array('Others');
states['Latvia'] = new Array('Others');
states['Libyan Arab Jamahiriya'] = new Array('Others');
states['Morocco'] = new Array('Others');
states['Monaco'] = new Array('Others');
states['Moldova, Republic of'] = new Array('Others');
states['Montenegro'] = new Array('Others');
states['Madagascar'] = new Array('Others');
states['Marshall Islands'] = new Array('Others');
states['Macedonia'] = new Array('Others');
states['Mali'] = new Array('Others');
states['Myanmar'] = new Array('Others');
states['Mongolia'] = new Array('Others');
states['Macao'] = new Array('Others');
states['Northern Mariana Islands'] = new Array('Others');
states['Martinique'] = new Array('Others');
states['Mauritania'] = new Array('Others');
states['Montserrat'] = new Array('Others');
states['Malta'] = new Array('Others');
states['Mauritius'] = new Array('Others');
states['Maldives'] = new Array('Others');
states['Malawi'] = new Array('Others');
states['Mexico'] = new Array('Others');
states['Malaysia'] = new Array('Melaka','Kedah','Kelantan','Johor','Negeri Sembilan','P Pinang','Pahang','Perak','Perlis','Sabah','Sarawak','Selangor','Terengganu','W. P. Labuan','W.P. K.Lumpur','W.P. Putrajaya');
states['Mozambique'] = new Array('Others');
states['Namibia'] = new Array('Others');
states['New Caledonia'] = new Array('Others');
states['Niger'] = new Array('Others');
states['Norfolk Island'] = new Array('Others');
states['Nigeria'] = new Array('Others');
states['Nicaragua'] = new Array('Others');
states['Netherlands'] = new Array('Others');
states['Norway'] = new Array('Others');
states['Nepal'] = new Array('Others');
states['Nauru'] = new Array('Others');
states['Niue'] = new Array('Others');
states['New Zealand'] = new Array('Others');
states['Oman'] = new Array('Others');
states['Panama'] = new Array('Others');
states['Peru'] = new Array('Others');
states['French Polynesia'] = new Array('Others');
states['Papua New Guinea'] = new Array('Others');
states['Philippines'] = new Array('Others');
states['Pakistan'] = new Array('Others');
states['Poland'] = new Array('Others');
states['Saint Pierre and Miquelon'] = new Array('Others');
states['Pitcairn'] = new Array('Others');
states['Puerto Rico'] = new Array('Others');
states['Palestinian Territory'] = new Array('Others');
states['Portugal'] = new Array('Others');
states['Palau'] = new Array('Others');
states['Paraguay'] = new Array('Others');
states['Qatar'] = new Array('Others');
states['Reunion'] = new Array('Others');
states['Romania'] = new Array('Others');
states['Serbia'] = new Array('Others');
states['Russian Federation'] = new Array('Others');
states['Rwanda'] = new Array('Others');
states['Saudi Arabia'] = new Array('Others');
states['Solomon Islands'] = new Array('Others');
states['Seychelles'] = new Array('Others');
states['Sudan'] = new Array('Others');
states['Sweden'] = new Array('Others');
states['Singapore'] = new Array('Others');
states['Saint Helena'] = new Array('Others');
states['Slovenia'] = new Array('Others');
states['Svalbard and Jan Mayen'] = new Array('Others');
states['Slovakia'] = new Array('Others');
states['Sierra Leone'] = new Array('Others');
states['San Marino'] = new Array('Others');
states['Senegal'] = new Array('Others');
states['Somalia'] = new Array('Others');
states['Suriname'] = new Array('Others');
states['Sao Tome and Principe'] = new Array('Others');
states['El Salvador'] = new Array('Others');
states['Syrian Arab Republic'] = new Array('Others');
states['Swaziland'] = new Array('Others');
states['Turks and Caicos Islands'] = new Array('Others');
states['Chad'] = new Array('Others');
states['French Southern Territories'] = new Array('Others');
states['Togo'] = new Array('Others');
states['Thailand'] = new Array('Others');
states['Tajikistan'] = new Array('Others');
states['Tokelau'] = new Array('Others');
states['TimorOthersLeste'] = new Array('Others');
states['Turkmenistan'] = new Array('Others');
states['Tunisia'] = new Array('Others');
states['Tonga'] = new Array('Others');
states['Turkey'] = new Array('Others');
states['Trinidad and Tobago'] = new Array('Others');
states['Tuvalu'] = new Array('Others');
states['Taiwan'] = new Array('Others');
states['Tanzania, United Republic of'] = new Array('Others');
states['Ukraine'] = new Array('Others');
states['Uganda'] = new Array('Others');
states['United States Minor Outlying Islands'] = new Array('Others');
states['United States'] = new Array('Others');
states['Uruguay'] = new Array('Others');
states['Uzbekistan'] = new Array('Others');
states['Holy See (Vatican City State)'] = new Array('Others');
states['Saint Vincent and the Grenadines'] = new Array('Others');
states['Venezuela'] = new Array('Others');
states['Virgin Islands, British'] = new Array('Others');
states['Virgin Islands, U.S.'] = new Array('Others');
states['Vietnam'] = new Array('Others');
states['Vanuatu'] = new Array('Others');
states['Wallis and Futuna'] = new Array('Others');
states['Samoa'] = new Array('Others');
states['Yemen'] = new Array('Others');
states['Mayotte'] = new Array('Others');
states['South Africa'] = new Array('Others');
states['Zambia'] = new Array('Others');
states['Zimbabwe'] = new Array('Others');
// City lists
cities = new Array();
cities['Andorra'] = new Array();
cities['Andorra']['Others'] = new Array('Others');
cities['United Arab Emirates'] = new Array();
cities['United Arab Emirates']['Others'] = new Array('Others');
cities['Afghanistan'] = new Array();
cities['Afghanistan']['Others'] = new Array('Others');
cities['Antigua and Barbuda'] = new Array();
cities['Antigua and Barbuda']['Others'] = new Array('Others');
cities['Anguilla'] = new Array();
cities['Anguilla']['Others'] = new Array('Others');
cities['Albania'] = new Array();
cities['Albania']['Others'] = new Array('Others');
cities['Armenia'] = new Array();
cities['Armenia']['Others'] = new Array('Others');
cities['Netherlands Antilles'] = new Array();
cities['Netherlands Antilles']['Others'] = new Array('Others');
cities['Angola'] = new Array();
cities['Angola']['Others'] = new Array('Others');
cities['Asia/Pacific Region'] = new Array();
cities['Asia/Pacific Region']['Others'] = new Array('Others');
cities['Antarctica'] = new Array();
cities['Antarctica']['Others'] = new Array('Others');
cities['Argentina'] = new Array();
cities['Argentina']['Others'] = new Array('Others');
cities['American Samoa'] = new Array();
cities['American Samoa']['Others'] = new Array('Others');
cities['Austria'] = new Array();
cities['Austria']['Others'] = new Array('Others');
cities['Australia'] = new Array();
cities['Australia']['Others'] = new Array('Others');
cities['Aruba'] = new Array();
cities['Aruba']['Others'] = new Array('Others');
cities['Aland Islands'] = new Array();
cities['Aland Islands']['Others'] = new Array('Others');
cities['Azerbaijan'] = new Array();
cities['Azerbaijan']['Others'] = new Array('Others');
cities['Bosnia and Herzegovina'] = new Array();
cities['Bosnia and Herzegovina']['Others'] = new Array('Others');
cities['Barbados'] = new Array();
cities['Barbados']['Others'] = new Array('Others');
cities['Bangladesh'] = new Array();
cities['Bangladesh']['Others'] = new Array('Others');
cities['Belgium'] = new Array();
cities['Belgium']['Others'] = new Array('Others');
cities['Burkina Faso'] = new Array();
cities['Burkina Faso']['Others'] = new Array('Others');
cities['Bulgaria'] = new Array();
cities['Bulgaria']['Others'] = new Array('Others');
cities['Bahrain'] = new Array();
cities['Bahrain']['Others'] = new Array('Others');
cities['Burundi'] = new Array();
cities['Burundi']['Others'] = new Array('Others');
cities['Benin'] = new Array();
cities['Benin']['Others'] = new Array('Others');
cities['Bermuda'] = new Array();
cities['Bermuda']['Others'] = new Array('Others');
cities['Brunei Darussalam'] = new Array();
cities['Brunei Darussalam']['Others'] = new Array('Others');
cities['Bolivia'] = new Array();
cities['Bolivia']['Others'] = new Array('Others');
cities['Brazil'] = new Array();
cities['Brazil']['Others'] = new Array('Others');
cities['Bahamas'] = new Array();
cities['Bahamas']['Others'] = new Array('Others');
cities['Bhutan'] = new Array();
cities['Bhutan']['Others'] = new Array('Others');
cities['Bouvet Island'] = new Array();
cities['Bouvet Island']['Others'] = new Array('Others');
cities['Botswana'] = new Array();
cities['Botswana']['Others'] = new Array('Others');
cities['Belarus'] = new Array();
cities['Belarus']['Others'] = new Array('Others');
cities['Belize'] = new Array();
cities['Belize']['Others'] = new Array('Others');
cities['Canada'] = new Array();
cities['Canada']['Others'] = new Array('Others');
cities['Cocos (Keeling) Islands'] = new Array();
cities['Cocos (Keeling) Islands']['Others'] = new Array('Others');
cities['Congo, The Democratic Republic of the'] = new Array();
cities['Congo, The Democratic Republic of the']['Others'] = new Array('Others');
cities['Central African Republic'] = new Array();
cities['Central African Republic']['Others'] = new Array('Others');
cities['Congo'] = new Array();
cities['Congo']['Others'] = new Array('Others');
cities['Switzerland'] = new Array();
cities['Switzerland']['Others'] = new Array('Others');
cities['Cote d&quot;Ivoire'] = new Array();
cities['Cote d&quot;Ivoire']['Others'] = new Array('Others');
cities['Cook Islands'] = new Array();
cities['Cook Islands']['Others'] = new Array('Others');
cities['Chile'] = new Array();
cities['Chile']['Others'] = new Array('Others');
cities['Cameroon'] = new Array();
cities['Cameroon']['Others'] = new Array('Others');
cities['China'] = new Array();
cities['China']['Others'] = new Array('Others');
cities['Colombia'] = new Array();
cities['Colombia']['Others'] = new Array('Others');
cities['Costa Rica'] = new Array();
cities['Costa Rica']['Others'] = new Array('Others');
cities['Cuba'] = new Array();
cities['Cuba']['Others'] = new Array('Others');
cities['Cape Verde'] = new Array();
cities['Cape Verde']['Others'] = new Array('Others');
cities['Christmas Island'] = new Array();
cities['Christmas Island']['Others'] = new Array('Others');
cities['Cyprus'] = new Array();
cities['Cyprus']['Others'] = new Array('Others');
cities['Czech Republic'] = new Array();
cities['Czech Republic']['Others'] = new Array('Others');
cities['Germany'] = new Array();
cities['Germany']['Others'] = new Array('Others');
cities['Djibouti'] = new Array();
cities['Djibouti']['Others'] = new Array('Others');
cities['Denmark'] = new Array();
cities['Denmark']['Others'] = new Array('Others');
cities['Dominica'] = new Array();
cities['Dominica']['Others'] = new Array('Others');
cities['Dominican Republic'] = new Array();
cities['Dominican Republic']['Others'] = new Array('Others');
cities['Algeria'] = new Array();
cities['Algeria']['Others'] = new Array('Others');
cities['Ecuador'] = new Array();
cities['Ecuador']['Others'] = new Array('Others');
cities['Estonia'] = new Array();
cities['Estonia']['Others'] = new Array('Others');
cities['Egypt'] = new Array();
cities['Egypt']['Others'] = new Array('Others');
cities['Western Sahara'] = new Array();
cities['Western Sahara']['Others'] = new Array('Others');
cities['Eritrea'] = new Array();
cities['Eritrea']['Others'] = new Array('Others');
cities['Spain'] = new Array();
cities['Spain']['Others'] = new Array('Others');
cities['Ethiopia'] = new Array();
cities['Ethiopia']['Others'] = new Array('Others');
cities['Europe'] = new Array();
cities['Europe']['Others'] = new Array('Others');
cities['Finland'] = new Array();
cities['Finland']['Others'] = new Array('Others');
cities['Fiji'] = new Array();
cities['Fiji']['Others'] = new Array('Others');
cities['Falkland Islands (Malvinas)'] = new Array();
cities['Falkland Islands (Malvinas)']['Others'] = new Array('Others');
cities['Micronesia, Federated States of'] = new Array();
cities['Micronesia, Federated States of']['Others'] = new Array('Others');
cities['Faroe Islands'] = new Array();
cities['Faroe Islands']['Others'] = new Array('Others');
cities['France'] = new Array();
cities['France']['Others'] = new Array('Others');
cities['Gabon'] = new Array();
cities['Gabon']['Others'] = new Array('Others');
cities['United Kingdom'] = new Array();
cities['United Kingdom']['Others'] = new Array('Others');
cities['Grenada'] = new Array();
cities['Grenada']['Others'] = new Array('Others');
cities['Georgia'] = new Array();
cities['Georgia']['Others'] = new Array('Others');
cities['French Guiana'] = new Array();
cities['French Guiana']['Others'] = new Array('Others');
cities['Guernsey'] = new Array();
cities['Guernsey']['Others'] = new Array('Others');
cities['Ghana'] = new Array();
cities['Ghana']['Others'] = new Array('Others');
cities['Gibraltar'] = new Array();
cities['Gibraltar']['Others'] = new Array('Others');
cities['Greenland'] = new Array();
cities['Greenland']['Others'] = new Array('Others');
cities['Gambia'] = new Array();
cities['Gambia']['Others'] = new Array('Others');
cities['Guinea'] = new Array();
cities['Guinea']['Others'] = new Array('Others');
cities['Guadeloupe'] = new Array();
cities['Guadeloupe']['Others'] = new Array('Others');
cities['Equatorial Guinea'] = new Array();
cities['Equatorial Guinea']['Others'] = new Array('Others');
cities['Greece'] = new Array();
cities['Greece']['Others'] = new Array('Others');
cities['South Georgia and the South Sandwich Islands'] = new Array();
cities['South Georgia and the South Sandwich Islands']['Others'] = new Array('Others');
cities['Guatemala'] = new Array();
cities['Guatemala']['Others'] = new Array('Others');
cities['Guam'] = new Array();
cities['Guam']['Others'] = new Array('Others');
cities['GuineaOthersBissau'] = new Array();
cities['GuineaOthersBissau']['Others'] = new Array('Others');
cities['Guyana'] = new Array();
cities['Guyana']['Others'] = new Array('Others');
cities['Hong Kong'] = new Array();
cities['Hong Kong']['Others'] = new Array('Others');
cities['Heard Island and McDonald Islands'] = new Array();
cities['Heard Island and McDonald Islands']['Others'] = new Array('Others');
cities['Honduras'] = new Array();
cities['Honduras']['Others'] = new Array('Others');
cities['Croatia'] = new Array();
cities['Croatia']['Others'] = new Array('Others');
cities['Haiti'] = new Array();
cities['Haiti']['Others'] = new Array('Others');
cities['Hungary'] = new Array();
cities['Hungary']['Others'] = new Array('Others');
cities['Indonesia'] = new Array();
cities['Indonesia']['Others'] = new Array('Others');
cities['Ireland'] = new Array();
cities['Ireland']['Others'] = new Array('Others');
cities['Israel'] = new Array();
cities['Israel']['Others'] = new Array('Others');
cities['Isle of Man'] = new Array();
cities['Isle of Man']['Others'] = new Array('Others');
cities['India'] = new Array();
cities['India']['Others'] = new Array('Others');
cities['British Indian Ocean Territory'] = new Array();
cities['British Indian Ocean Territory']['Others'] = new Array('Others');
cities['Iraq'] = new Array();
cities['Iraq']['Others'] = new Array('Others');
cities['Iran, Islamic Republic of'] = new Array();
cities['Iran, Islamic Republic of']['Others'] = new Array('Others');
cities['Iceland'] = new Array();
cities['Iceland']['Others'] = new Array('Others');
cities['Italy'] = new Array();
cities['Italy']['Others'] = new Array('Others');
cities['Jersey'] = new Array();
cities['Jersey']['Others'] = new Array('Others');
cities['Jamaica'] = new Array();
cities['Jamaica']['Others'] = new Array('Others');
cities['Jordan'] = new Array();
cities['Jordan']['Others'] = new Array('Others');
cities['Japan'] = new Array();
cities['Japan']['Others'] = new Array('Others');
cities['Kenya'] = new Array();
cities['Kenya']['Others'] = new Array('Others');
cities['Kyrgyzstan'] = new Array();
cities['Kyrgyzstan']['Others'] = new Array('Others');
cities['Cambodia'] = new Array();
cities['Cambodia']['Others'] = new Array('Others');
cities['Kiribati'] = new Array();
cities['Kiribati']['Others'] = new Array('Others');
cities['Comoros'] = new Array();
cities['Comoros']['Others'] = new Array('Others');
cities['Saint Kitts and Nevis'] = new Array();
cities['Saint Kitts and Nevis']['Others'] = new Array('Others');
cities['Korea, Democratic People&quot;s Republic of'] = new Array();
cities['Korea, Democratic People&quot;s Republic of']['Others'] = new Array('Others');
cities['Korea, Republic of'] = new Array();
cities['Korea, Republic of']['Others'] = new Array('Others');
cities['Kuwait'] = new Array();
cities['Kuwait']['Others'] = new Array('Others');
cities['Cayman Islands'] = new Array();
cities['Cayman Islands']['Others'] = new Array('Others');
cities['Kazakhstan'] = new Array();
cities['Kazakhstan']['Others'] = new Array('Others');
cities['Lao People&quot;s Democratic Republic'] = new Array();
cities['Lao People&quot;s Democratic Republic']['Others'] = new Array('Others');
cities['Lebanon'] = new Array();
cities['Lebanon']['Others'] = new Array('Others');
cities['Saint Lucia'] = new Array();
cities['Saint Lucia']['Others'] = new Array('Others');
cities['Liechtenstein'] = new Array();
cities['Liechtenstein']['Others'] = new Array('Others');
cities['Sri Lanka'] = new Array();
cities['Sri Lanka']['Others'] = new Array('Others');
cities['Liberia'] = new Array();
cities['Liberia']['Others'] = new Array('Others');
cities['Lesotho'] = new Array();
cities['Lesotho']['Others'] = new Array('Others');
cities['Lithuania'] = new Array();
cities['Lithuania']['Others'] = new Array('Others');
cities['Luxembourg'] = new Array();
cities['Luxembourg']['Others'] = new Array('Others');
cities['Latvia'] = new Array();
cities['Latvia']['Others'] = new Array('Others');
cities['Libyan Arab Jamahiriya'] = new Array();
cities['Libyan Arab Jamahiriya']['Others'] = new Array('Others');
cities['Morocco'] = new Array();
cities['Morocco']['Others'] = new Array('Others');
cities['Monaco'] = new Array();
cities['Monaco']['Others'] = new Array('Others');
cities['Moldova, Republic of'] = new Array();
cities['Moldova, Republic of']['Others'] = new Array('Others');
cities['Montenegro'] = new Array();
cities['Montenegro']['Others'] = new Array('Others');
cities['Madagascar'] = new Array();
cities['Madagascar']['Others'] = new Array('Others');
cities['Marshall Islands'] = new Array();
cities['Marshall Islands']['Others'] = new Array('Others');
cities['Macedonia'] = new Array();
cities['Macedonia']['Others'] = new Array('Others');
cities['Mali'] = new Array();
cities['Mali']['Others'] = new Array('Others');
cities['Myanmar'] = new Array();
cities['Myanmar']['Others'] = new Array('Others');
cities['Mongolia'] = new Array();
cities['Mongolia']['Others'] = new Array('Others');
cities['Macao'] = new Array();
cities['Macao']['Others'] = new Array('Others');
cities['Northern Mariana Islands'] = new Array();
cities['Northern Mariana Islands']['Others'] = new Array('Others');
cities['Martinique'] = new Array();
cities['Martinique']['Others'] = new Array('Others');
cities['Mauritania'] = new Array();
cities['Mauritania']['Others'] = new Array('Others');
cities['Montserrat'] = new Array();
cities['Montserrat']['Others'] = new Array('Others');
cities['Malta'] = new Array();
cities['Malta']['Others'] = new Array('Others');
cities['Mauritius'] = new Array();
cities['Mauritius']['Others'] = new Array('Others');
cities['Maldives'] = new Array();
cities['Maldives']['Others'] = new Array('Others');
cities['Malawi'] = new Array();
cities['Malawi']['Others'] = new Array('Others');
cities['Mexico'] = new Array();
cities['Mexico']['Others'] = new Array('Others');
cities['Malaysia'] = new Array();
//=====================================
cities['Malaysia']['Selangor'] = new Array('Ampang','B Baru Sungai Buluh','Banting','Batang Kali','Batu 9 Cheras','Batu Arang','Batu Caves','Bdr. Baru Bangi','Beranang','Btg. Berjuntai','Bukit Rotan','Cyberjaya','Dengkil','Hulu Bernam','Hulu Langat','Jenjarom','Jeram','K. Kubu Bharu','Kajang','Kapar','Kerling','Klang','Kuala Lumpur','Kuala Selangor','Mantin','Nilai','Pelabohan Klang','Petaling Jaya','Puchong','Pulau Carey','Pulau Indah','Pulau Ketam','Putrajaya (Sebelum 1.2.2001)','Rantau Panjang','Rasa','Rawang','Sabak Bernam','Sekincan','Selayang','Semenyih','Sepang','Serendah','Sg. Ayer Tawar','Shah Alam','Sri Kembangan','Subang Jaya','Sungai Besar','Sungai Buloh','Sungai Pelek','Tanjong Karang','Tanjong Sepat','Telok Panglima Garang','Ukm Bangi','Upm Serdang','Ulu Yam Baru');
cities['Malaysia']['Melaka'] = new Array('Alor Gajah','Asahan','Ayer Keroh','Batang Melaka','Bemban','Durian Tunggal','Gemas','Jasin','K/Sungai Baru','Lubok China','Masjid Tanah','Melaka','Merlimau','Sungai Rambai','Sungai Udang','Tampin','Tanjong Keling');
cities['Malaysia']['Kedah'] = new Array('Alor Setar','Baling','Bandar Baharu','Bedong','Changloon','Gurun','Jitra','Karangan','Kepala Batas','Kodiang','Kota Kuala Muda','Kuala Kedah','Kuala Ketil','Kuala Nerang','Kulim','Kupang','Langkawi','Lunas','Merbok','Padang Serai','Pendang','Pokok Sena','Serdang','Sg. Bakap','Sik','Sungai Petani','Yan','Langgar');
cities['Malaysia']['W.P. K.Lumpur'] = new Array('Kuala Lumpur');
cities['Malaysia']['Negeri Sembilan'] = new Array('Asahan , Melaka','B Baru Jempol','Bahau','Bandar Seri Jempol','Batang Melaka','Batu Kikir','Bukit Pelandok','Chuah','Durian Tipus','Gemas','Gemencheh','Jelebu','Johol','Juasseh','Kota','Kuala Klawang','Kuala Pilah','Labu','Lenggeng','Linggi','Lubok China','Lukut','Mantin','Nilai','Pasir Panjang','Pedas','Peng. Kempas','Port Dickson','Rantau','Rembau','Rompin','Seliau','Seremban','Si Rusa','Siliau','Simpang Pertang','Sri Menanti','Sungai Gadut','Tampin','Tanjong Ipoh','Teluk Kemang','Titi');
cities['Malaysia']['Johor'] = new Array('Asahan, Johor','Ayer Baloi','Ayer Hitam','Bakri','Batu Anam','Batu Pahat','Bekok','Benut','Bukit Gambir','Bukit Kepong','Bukit Pasir','Chaah','Endau','Gelang Patah','Gemas','Gemas Baru','Gersek','Gugusan Taib Andak','Jementah','Johor Bahru','Kahang','Kg Kenangan Tun Dr Ismail','Kluang','Kota Tinggi','Kukup','Kulai','Labis','LayangOthersLayang','Lenga','Masai','Mersing','Muar','Pagoh','Paloh','Panchor','Parit Jawa','Parit Raja','Parit Sulong','Pasir Gudang','Pekan Nenas','Pengerang','Pontian','Renggam','Rengit','Sagil','Segamat','Semerah','Senai','Senggarang','Simpang Renggam','Skudai','Sungai Balang','Sungai Mati','Tangkak','Ulu Tiram','Yong Peng');
cities['Malaysia']['Kelantan'] = new Array('Ayer Lanas','Bachok','Cherang Ruku','Dabong','Gua Musang','Jeli','Kem Desa Pahlawan','Ketereh','Kota Bharu','Kuala Krai','Machang','Melor','Pasir Mas','Pasir Puteh','Pulai Chondong','Rantau Panjang','Tanah Merah','Temangan','Tumpat','Wakaf Baru');
cities['Malaysia']['Perlis'] = new Array('Arau','Kaki Bukit','Kangar','Kuala Perlis','Padang Besar','Simpang Ampat');
cities['Malaysia']['Sabah'] = new Array('Beaufort','Beluran','Bongawan','Inanam','K. Kinabatangan','Keningau','Kota Belud','Kota Kinabalu','Kota Marudu','Kuala Penyu','Kudat','Kunak','Lahad Datu','Lamag','Likas','Menumbuk','Nabawan','Papar','Penampang','Ranau','Sandakan','Semporna','Sipitang','Tambunan','Tamparuli','Tanjung Aru','Tawau','Tenom','Tuaran','Membakut');
cities['Malaysia']['P Pinang'] = new Array('Ayer Itam','Balik Pulau','Batu Ferringhi','Bayan Lepas','Bukit Mertajam','Butterworth','Gelugor','Georgetown','Kepala Batas','Nibong Tebal','Penaga','Penang Hill','Perai','Permatang Pauh','Pulau Pinang','Simpang Ampat','Sungai Bakap','Sungai Jawi','Tanjong Bungah','Tasek Gelugor','Usm P/Pinang');
cities['Malaysia']['W. P. Labuan'] = new Array('W.P Labuan');

cities['Malaysia']['W.P. Putrajaya'] = new Array('Putrajaya');

cities['Malaysia']['Sarawak'] = new Array('Asajaya','Balingan','Baram','Bau','Bekenu','Belaga','Belawi','Betong','Bintagor','Bintangor','Bintulu','Dalat','Daro','Debak','Engkilili','Julau','Kabong','Kanowit','Kota Samarahan','Kuching','Lawas','Limbang','Lingga','Long Lama','Lubok Antu','Lundu','Matu','Miri','Mukah','Nanga Medamit','Niah','Oya','Pakan','Pekenu','Pusa','Roban','Saratok','Sarikei','Sebauh','Sebuyau','Serian','Sibu','Sibuti','Simunjan','Song','Spaoh','Sri Aman','Sundar','Tatau','Tebakang','Tebedu','Kapit');

cities['Malaysia']['Terengganu'] = new Array('Al Muktafi Bilal Shah','Bdr Permaisuri','Besut','Bukit Besi','Cukai','Dungun','Jertih','K Terengganu','Kampong Raja','Kemaman','Kemasek','Kertih','Kijal','Kuala Berang','Kuala Besut','Marang','Paka');
cities['Malaysia']['Pahang'] = new Array('Bandar Bera','Bandar Jengka','Bdr Tun Razak','Benta','Bentong','Beserah','Bukit Fraser','C Highlands','Chenor','Dong','Gambang','Genting','Jerantut','Karak','Kemayan','Kuala Lipis','Kuala Rompin','Kuantan','Lancang','Lurah Bilut','Maran','Mengkarak','Mentakab','Mersing','Muadzam Shah','Padang Tengku','Pekan','Raub','Ringlet','Rompin','Segamat','Sungai Lembing','Sungai Ruan','Tanah Rata','Temerloh','Triang');

cities['Malaysia']['Perak'] = new Array('Ayer Tawar','Bagan Datoh','Bagan Serai','Batu Gajah','Batu Kurau','Behrang Stesen','Beruas','Bidor','Bota','Changkat Keruing','Chemor','Chenderiang','Chenderong Balai','Enggor','Gerik','Gopeng','Hutan Melintang','Ipoh','Kampar','Kampong Gajah','Kamunting','Kg Kepayang','Klian Intan','Kuala Dipang','Kuala Kangsar','Kuala Kurau','Kuala Sepetang','Lahat','Langkap','Lenggong','Lumut','Malim Mawar','Mambang Diawan','Manong','Matang','Menglembu','Padang Rengas','Pangkor','Pantai Remis','Parit','Parit Buntar','Pengkalan Hulu','Pusing','Sauk','Selama','Selekoh','Semanggol','Seri Manjung','Sg Siput (U)','Simpang','Simpang Ampat','Sitiawan','Slim River','Sungai Siput','Sungai Sumun','Sungkai','Taiping','Tanjong Tualang','Tanjung Malim','Tapah','Tapah Road','Telok Intan','Temoh','Teronoh','Tg Piandang','Tg Rambutan','Trolak','Trong','Ulu Bernam','Ulu Kinta');
//=====================================
//cities['Malaysia']['Others'] = new Array('Others');
cities['Mozambique'] = new Array();
cities['Mozambique']['Others'] = new Array('Others');
cities['Namibia'] = new Array();
cities['Namibia']['Others'] = new Array('Others');
cities['New Caledonia'] = new Array();
cities['New Caledonia']['Others'] = new Array('Others');
cities['Niger'] = new Array();
cities['Niger']['Others'] = new Array('Others');
cities['Norfolk Island'] = new Array();
cities['Norfolk Island']['Others'] = new Array('Others');
cities['Nigeria'] = new Array();
cities['Nigeria']['Others'] = new Array('Others');
cities['Nicaragua'] = new Array();
cities['Nicaragua']['Others'] = new Array('Others');
cities['Netherlands'] = new Array();
cities['Netherlands']['Others'] = new Array('Others');
cities['Norway'] = new Array();
cities['Norway']['Others'] = new Array('Others');
cities['Nepal'] = new Array();
cities['Nepal']['Others'] = new Array('Others');
cities['Nauru'] = new Array();
cities['Nauru']['Others'] = new Array('Others');
cities['Niue'] = new Array();
cities['Niue']['Others'] = new Array('Others');
cities['New Zealand'] = new Array();
cities['New Zealand']['Others'] = new Array('Others');
cities['Oman'] = new Array();
cities['Oman']['Others'] = new Array('Others');
cities['Panama'] = new Array();
cities['Panama']['Others'] = new Array('Others');
cities['Peru'] = new Array();
cities['Peru']['Others'] = new Array('Others');
cities['French Polynesia'] = new Array();
cities['French Polynesia']['Others'] = new Array('Others');
cities['Papua New Guinea'] = new Array();
cities['Papua New Guinea']['Others'] = new Array('Others');
cities['Philippines'] = new Array();
cities['Philippines']['Others'] = new Array('Others');
cities['Pakistan'] = new Array();
cities['Pakistan']['Others'] = new Array('Others');
cities['Poland'] = new Array();
cities['Poland']['Others'] = new Array('Others');
cities['Saint Pierre and Miquelon'] = new Array();
cities['Saint Pierre and Miquelon']['Others'] = new Array('Others');
cities['Pitcairn'] = new Array();
cities['Pitcairn']['Others'] = new Array('Others');
cities['Puerto Rico'] = new Array();
cities['Puerto Rico']['Others'] = new Array('Others');
cities['Palestinian Territory'] = new Array();
cities['Palestinian Territory']['Others'] = new Array('Others');
cities['Portugal'] = new Array();
cities['Portugal']['Others'] = new Array('Others');
cities['Palau'] = new Array();
cities['Palau']['Others'] = new Array('Others');
cities['Paraguay'] = new Array();
cities['Paraguay']['Others'] = new Array('Others');
cities['Qatar'] = new Array();
cities['Qatar']['Others'] = new Array('Others');
cities['Reunion'] = new Array();
cities['Reunion']['Others'] = new Array('Others');
cities['Romania'] = new Array();
cities['Romania']['Others'] = new Array('Others');
cities['Serbia'] = new Array();
cities['Serbia']['Others'] = new Array('Others');
cities['Russian Federation'] = new Array();
cities['Russian Federation']['Others'] = new Array('Others');
cities['Rwanda'] = new Array();
cities['Rwanda']['Others'] = new Array('Others');
cities['Saudi Arabia'] = new Array();
cities['Saudi Arabia']['Others'] = new Array('Others');
cities['Solomon Islands'] = new Array();
cities['Solomon Islands']['Others'] = new Array('Others');
cities['Seychelles'] = new Array();
cities['Seychelles']['Others'] = new Array('Others');
cities['Sudan'] = new Array();
cities['Sudan']['Others'] = new Array('Others');
cities['Sweden'] = new Array();
cities['Sweden']['Others'] = new Array('Others');
cities['Singapore'] = new Array();
cities['Singapore']['Others'] = new Array('Others');
cities['Saint Helena'] = new Array();
cities['Saint Helena']['Others'] = new Array('Others');
cities['Slovenia'] = new Array();
cities['Slovenia']['Others'] = new Array('Others');
cities['Svalbard and Jan Mayen'] = new Array();
cities['Svalbard and Jan Mayen']['Others'] = new Array('Others');
cities['Slovakia'] = new Array();
cities['Slovakia']['Others'] = new Array('Others');
cities['Sierra Leone'] = new Array();
cities['Sierra Leone']['Others'] = new Array('Others');
cities['San Marino'] = new Array();
cities['San Marino']['Others'] = new Array('Others');
cities['Senegal'] = new Array();
cities['Senegal']['Others'] = new Array('Others');
cities['Somalia'] = new Array();
cities['Somalia']['Others'] = new Array('Others');
cities['Suriname'] = new Array();
cities['Suriname']['Others'] = new Array('Others');
cities['Sao Tome and Principe'] = new Array();
cities['Sao Tome and Principe']['Others'] = new Array('Others');
cities['El Salvador'] = new Array();
cities['El Salvador']['Others'] = new Array('Others');
cities['Syrian Arab Republic'] = new Array();
cities['Syrian Arab Republic']['Others'] = new Array('Others');
cities['Swaziland'] = new Array();
cities['Swaziland']['Others'] = new Array('Others');
cities['Turks and Caicos Islands'] = new Array();
cities['Turks and Caicos Islands']['Others'] = new Array('Others');
cities['Chad'] = new Array();
cities['Chad']['Others'] = new Array('Others');
cities['French Southern Territories'] = new Array();
cities['French Southern Territories']['Others'] = new Array('Others');
cities['Togo'] = new Array();
cities['Togo']['Others'] = new Array('Others');
cities['Thailand'] = new Array();
cities['Thailand']['Others'] = new Array('Others');
cities['Tajikistan'] = new Array();
cities['Tajikistan']['Others'] = new Array('Others');
cities['Tokelau'] = new Array();
cities['Tokelau']['Others'] = new Array('Others');
cities['TimorOthersLeste'] = new Array();
cities['TimorOthersLeste']['Others'] = new Array('Others');
cities['Turkmenistan'] = new Array();
cities['Turkmenistan']['Others'] = new Array('Others');
cities['Tunisia'] = new Array();
cities['Tunisia']['Others'] = new Array('Others');
cities['Tonga'] = new Array();
cities['Tonga']['Others'] = new Array('Others');
cities['Turkey'] = new Array();
cities['Turkey']['Others'] = new Array('Others');
cities['Trinidad and Tobago'] = new Array();
cities['Trinidad and Tobago']['Others'] = new Array('Others');
cities['Tuvalu'] = new Array();
cities['Tuvalu']['Others'] = new Array('Others');
cities['Taiwan'] = new Array();
cities['Taiwan']['Others'] = new Array('Others');
cities['Tanzania, United Republic of'] = new Array();
cities['Tanzania, United Republic of']['Others'] = new Array('Others');
cities['Ukraine'] = new Array();
cities['Ukraine']['Others'] = new Array('Others');
cities['Uganda'] = new Array();
cities['Uganda']['Others'] = new Array('Others');
cities['United States Minor Outlying Islands'] = new Array();
cities['United States Minor Outlying Islands']['Others'] = new Array('Others');
cities['United States'] = new Array();
cities['United States']['Others'] = new Array('Others');
cities['Uruguay'] = new Array();
cities['Uruguay']['Others'] = new Array('Others');
cities['Uzbekistan'] = new Array();
cities['Uzbekistan']['Others'] = new Array('Others');
cities['Holy See (Vatican City State)'] = new Array();
cities['Holy See (Vatican City State)']['Others'] = new Array('Others');
cities['Saint Vincent and the Grenadines'] = new Array();
cities['Saint Vincent and the Grenadines']['Others'] = new Array('Others');
cities['Venezuela'] = new Array();
cities['Venezuela']['Others'] = new Array('Others');
cities['Virgin Islands, British'] = new Array();
cities['Virgin Islands, British']['Others'] = new Array('Others');
cities['Virgin Islands, U.S.'] = new Array();
cities['Virgin Islands, U.S.']['Others'] = new Array('Others');
cities['Vietnam'] = new Array();
cities['Vietnam']['Others'] = new Array('Others');
cities['Vanuatu'] = new Array();
cities['Vanuatu']['Others'] = new Array('Others');
cities['Wallis and Futuna'] = new Array();
cities['Wallis and Futuna']['Others'] = new Array('Others');
cities['Samoa'] = new Array();
cities['Samoa']['Others'] = new Array('Others');
cities['Yemen'] = new Array();
cities['Yemen']['Others'] = new Array('Others');
cities['Mayotte'] = new Array();
cities['Mayotte']['Others'] = new Array('Others');
cities['South Africa'] = new Array();
cities['South Africa']['Others'] = new Array('Others');
cities['Zambia'] = new Array();
cities['Zambia']['Others'] = new Array('Others');
cities['Zimbabwe'] = new Array();
cities['Zimbabwe']['Others'] = new Array('Others');


function setStates() {
  cntrySel = document.getElementById('country');
  stateList = states[''+cntrySel.value];
  changeSelect('state', stateList, stateList);
  setCities();
}

function setCities() {
  cntrySel = document.getElementById('country');
  stateSel = document.getElementById('state');
  cityList = cities[cntrySel.value][stateSel.value];
  changeSelect('city', cityList, cityList);
}

function changeSelect(fieldID, newOptions, newValues) {
  selectField = document.getElementById(fieldID);
  selectField.options.length = 0;
  for (i=0; i<newOptions.length; i++) {
    selectField.options[selectField.length] = new Option(newOptions[i], newValues[i]);
  }
}

// Multiple onload function created by: Simon Willison
// http://simonwillison.net/2004/May/26/addLoadEvent/
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

addLoadEvent(function() {
  //setStates();
});
